import { request } from 'umi';

export let getEmilList = ({ page }) => {
    let params = {
        page,
        pageSize:12
    }
    return request('/api/smtp',{
        params
    })
}
export let searchEmilList = (page:number, inp0:string, inp1:string, inp2:string) =>{
    console.log(inp0,inp1,inp2,"****page");
    
    let params = {
        page,
        pageSize: 12,
        from: inp0,
        to: inp1,
        subject: inp2
    }
    return request('/api/smtp', {
        params
    })
}
export let delEmilList = ({ id }) => {
    return request(`/api/smtp/${id}`,{
        method: 'DELETE'
    })
}